import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class C1_12_1 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int index = 0;
        str = str.replaceAll("[ ]+", "");
        int num1 = 0;
        int num2 = 0;
        while (true) {
            if (str.charAt(index) == '+') {
                num1 = Integer.parseInt(str.substring(0, index));
                num2 = Integer.parseInt(str.substring(index + 1, str.length()));
                System.out.println(num1+num2);
                break;
            }else if(str.charAt(index) == '-'){
                num1 = Integer.parseInt(str.substring(0, index));
                num2 = Integer.parseInt(str.substring(index + 1, str.length()));
                System.out.println(num1-num2);
                break;
            }else if(str.charAt(index) == '*'){
                num1 = Integer.parseInt(str.substring(0, index));
                num2 = Integer.parseInt(str.substring(index + 1, str.length()));
                System.out.println(num1*num2);
                break;
            }else if(str.charAt(index) == '/'){
                num1 = Integer.parseInt(str.substring(0, index));
                num2 = Integer.parseInt(str.substring(index + 1, str.length()));
                System.out.println(num1/num2);
                break;
            }else if(str.charAt(index) == '%'){
                num1 = Integer.parseInt(str.substring(0, index));
                num2 = Integer.parseInt(str.substring(index + 1, str.length()));
                System.out.println(num1%num2);
                break;
            }
            index ++;
        }
    }
}
